import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//1.引入reset.css重置样式
import './assets/css/reset.css'
//3.引入图标
import './assets/css/iconfont.css'
//4.引入swiper组件样式
//决定分页器和左右按钮的翻页样式
import 'swiper/swiper-bundle.min.css'
//基础样式
import 'swiper/swiper.min.css'
//5.引入移动设备样式基数配置
import 'lib-flexible/flexible.js'
import 'lib-flexible/flexible.js'
import axios from 'axios'
import VueAxios from 'vue-axios'


//2.引入fastclick模板
import FastClick from 'fastclick'
//将整个禁止延迟的操作应用到整个body标签内
FastClick.attach(document.body)

//所有的路由跳转之后,所有页面返回顶部
router.afterEach((to , from ,next)=>{
	//所有组件跳转之后,滚动条置顶
	window.scrollTo(0,0)
})

createApp(App).use(store).use(router).use(VueAxios,axios).mount("#app");
